gdk/win32/gdkprivate-win32.h gdk/win32/gdkglobals-win32.c Remove
authorTor Lillqvist <tml@iki.fi>
Sun, 31 Oct 2004 14:47:15 +0000 (14:47 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 31 Oct 2004 14:47:15 +0000 (14:47 +0000)
2004-10-31  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkprivate-win32.h
* gdk/win32/gdkglobals-win32.c
* gdk/win32/gdkmain-win32.c: Remove _windows_version and the
IS_WIN_NT() macro.

* gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.

12 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkdrawable-win32.c
gdk/win32/gdkevents-win32.c
gdk/win32/gdkgc-win32.c
gdk/win32/gdkglobals-win32.c
gdk/win32/gdkmain-win32.c
gdk/win32/gdkprivate-win32.h
gdk/win32/gdkproperty-win32.c
gdk/win32/gdkselection-win32.c

index 4d9f121d30757ee1b98fce6eeac7b8c1315afa69..77b6ad0d66e30eb2562b0bd11d7f5c55a2a58071 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-10-31  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkprivate-win32.h
+       * gdk/win32/gdkglobals-win32.c
+       * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+       IS_WIN_NT() macro.
+
+       * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
 
        Add api for image transfer via copy-and-paste (#156408)
index 4d9f121d30757ee1b98fce6eeac7b8c1315afa69..77b6ad0d66e30eb2562b0bd11d7f5c55a2a58071 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-31  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkprivate-win32.h
+       * gdk/win32/gdkglobals-win32.c
+       * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+       IS_WIN_NT() macro.
+
+       * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
 
        Add api for image transfer via copy-and-paste (#156408)
index 4d9f121d30757ee1b98fce6eeac7b8c1315afa69..77b6ad0d66e30eb2562b0bd11d7f5c55a2a58071 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-31  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkprivate-win32.h
+       * gdk/win32/gdkglobals-win32.c
+       * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+       IS_WIN_NT() macro.
+
+       * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
 
        Add api for image transfer via copy-and-paste (#156408)
index 4d9f121d30757ee1b98fce6eeac7b8c1315afa69..77b6ad0d66e30eb2562b0bd11d7f5c55a2a58071 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-31  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkprivate-win32.h
+       * gdk/win32/gdkglobals-win32.c
+       * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+       IS_WIN_NT() macro.
+
+       * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
 
        Add api for image transfer via copy-and-paste (#156408)
index 286cea9284fd005362b0253cabfa5398a94b503f..bea0b0e909c21522d20d1e93c8338377a51df6c8 100644 (file)
@@ -612,7 +612,7 @@ generic_draw (GdkDrawable    *drawable,
        * the areas where mask is one. (It is filled with said pattern.)
        */
 
-      if (IS_WIN_NT ())
+      if (G_WIN32_IS_NT_BASED ())
        {
          GDI_CALL (MaskBlt, (hdc, region->extents.x1, region->extents.y1,
                              width, height,
@@ -727,7 +727,7 @@ draw_rectangle (GdkGCWin32 *gcwin32,
   x -= x_offset;
   y -= y_offset;
 
-  if (!filled && gcwin32->pen_dashes && !IS_WIN_NT ())
+  if (!filled && gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
     {
       render_line_vertical (hdc, x, y, y+height+1,
                            gcwin32->pen_width,
@@ -1187,7 +1187,7 @@ draw_segments (GdkGCWin32 *gcwin32,
         }
     }
 
-  if (gcwin32->pen_dashes && !IS_WIN_NT ())
+  if (gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
     {
       for (i = 0; i < nsegs; i++)
        {
@@ -1329,7 +1329,7 @@ draw_lines (GdkGCWin32 *gcwin32,
        pts[i].y -= y_offset;
       }
   
-  if (gcwin32->pen_dashes && !IS_WIN_NT ())
+  if (gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
     {
       for (i = 0; i < npoints - 1; i++)
         {
index a7c20f7e762a29978b563667d9dd8d3155bf7a1d..e9eea03ce76c459b114b3ab520c1ef579f420304 100644 (file)
@@ -850,7 +850,7 @@ build_key_event_state (GdkEvent *event,
    * does indicate correctly whether it is the right Control or Alt
    * key. But that would be a bit messy.
    */
-  if (!IS_WIN_NT () &&
+  if (!G_WIN32_IS_NT_BASED () &&
       _gdk_keyboard_has_altgr &&
       key_state[VK_CONTROL] & 0x80 &&
       key_state[VK_MENU] & 0x80)
index 3dbaaf013a0562edd68b1971e6d4df47f5c41c16..4d4b09d4422404f3a90cb1d18adf88aa895d5183 100644 (file)
@@ -238,7 +238,7 @@ gdk_win32_gc_values_to_win32values (GdkGCValues    *values,
        * it shouldn't be necessary at all, but win9x would do the clipping
        */
          if (   (sw != 8 || sh != 8)
-             && !IS_WIN_NT ()) /* HB: the MSDN says it's a Win95 limitation */
+             && !G_WIN32_IS_NT_BASED ()) /* HB: the MSDN says it's a Win95 limitation */
            {
              /* It seems that it *must* be 8x8, at least on my machine. 
               * Thus, tile an 8x8 bitmap with the stipple in case it is
@@ -955,7 +955,7 @@ gdk_win32_hdc_get (GdkDrawable    *drawable,
       logbrush.lbColor = fg;
       logbrush.lbHatch = 0;
       
-      if (win32_gc->pen_num_dashes > 0 && !IS_WIN_NT ())
+      if (win32_gc->pen_num_dashes > 0 && !G_WIN32_IS_NT_BASED ())
        {
          /* The Win9x GDI is rather limited so we either draw dashed
           * lines ourselves (only horizontal and vertical) or let them be
index 8a0c7d483f2c25951fd073c60657031e50be311d..4af1eb72d635123d00272f970f1140c20ef2295d 100644 (file)
@@ -62,8 +62,6 @@ GdkAtom           _gdk_selection_property;
 
 GdkAtom                  _wm_transient_for;
 
-DWORD            _windows_version;
-
 gint             _gdk_input_ignore_wintab = FALSE;
 gint             _gdk_max_colors = 0;
 
index 49bbe61b9cb8500e97eedac8ccd736878518a434..161549416664f35b74bc3929604004d4620a08f8 100644 (file)
@@ -98,13 +98,6 @@ _gdk_windowing_init (void)
   _gdk_app_hmodule = GetModuleHandle (NULL);
   _gdk_display_hdc = CreateDC ("DISPLAY", NULL, NULL, NULL);
   _gdk_root_window = GetDesktopWindow ();
-  _windows_version = GetVersion ();
-
-  if (getenv ("PRETEND_WIN9X"))
-    _windows_version = 0x80000004;
-
-  GDK_NOTE (MISC, g_print ("Windows version: %08x\n", (guint) _windows_version));
-
   _gdk_input_locale = GetKeyboardLayout (0);
   _gdk_input_locale_is_ime = ImmIsIME (_gdk_input_locale);
   GetLocaleInfo (MAKELCID (LOWORD (_gdk_input_locale), SORT_DEFAULT),
@@ -160,7 +153,7 @@ _gdk_win32_gdi_failed (const gchar *where,
   /* On Win9x GDI calls are implemented in 16-bit code and thus
    * don't set the 32-bit error code, sigh.
    */
-  if (IS_WIN_NT ())
+  if (G_WIN32_IS_NT_BASED ())
     _gdk_win32_api_failed (where, line, api);
   else
     _gdk_other_api_failed (where, line, api);
index 2cfc899106aad9f179a7a32012b9a457088fce60..188401b4a25f24a7e4dcd70304dec6348ba80111 100644 (file)
@@ -488,9 +488,6 @@ extern GdkAtom               _gdk_selection_property;
 
 extern GdkAtom          _wm_transient_for;
 
-extern DWORD            _windows_version;
-#define IS_WIN_NT()      (_windows_version < 0x80000000)
-
 /* Options */
 extern gboolean                 _gdk_input_ignore_wintab;
 extern gint             _gdk_max_colors;
index fc42812c352cf4fb3c6ea917989fa6f538c5d977..344913103c9f3ae5bfbd1853add022d9f687972d 100644 (file)
@@ -321,7 +321,7 @@ gdk_property_change (GdkWindow    *window,
          size++;
          GDK_NOTE (DND, g_print ("...as text: %.40s\n", data));
        }
-      else if (IS_WIN_NT ())
+      else if (G_WIN32_IS_NT_BASED ())
        {
          /* On NT, use CF_UNICODETEXT if any non-system codepage char
           * present.
index 63fff2f685f179fff6cd5fcffcbce701bc02674b..1e22293dac8dd07da2b71576b2339d07febef183 100644 (file)
@@ -417,7 +417,7 @@ gdk_selection_convert (GdkWindow *requestor,
        return;
 
       /* Try various formats. First the simplest, CF_UNICODETEXT. */
-      if (IS_WIN_NT () && (hdata = GetClipboardData (CF_UNICODETEXT)) != NULL)
+      if (G_WIN32_IS_NT_BASED () && (hdata = GetClipboardData (CF_UNICODETEXT)) != NULL)
        {
          wchar_t *ptr, *wcs, *p, *q;
          guchar *data;